﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.ClassRoom;
using HCQ2_Model.ViewModel;

namespace HCQ2_IDAL
{
    /// <summary>
    /// 直播课堂
    /// </summary>
    public partial interface IN_VRLineClassRoomDAL
    {
        /// <summary>
        /// 检查老师新建直播课堂上课时间和已存在的直播课堂的上课时间是否存在重叠
        /// </summary>
        /// <param name="UserId">用户ID</param>
        /// <param name="StartTime">上课时间</param>
        /// <param name="EndTime">上课结束时间</param>
        /// <returns>有数据表示存在重叠</returns>
        List<CheckClassRoomTimeOverlap> CheckClassRoomTimeOverlap(int UserId,DateTime StartTime,DateTime EndTime);

        /// <summary>
        /// 获取直播课堂列表
        /// </summary>
        /// <param name="query"></param>        
        /// <returns></returns>
        TableModel<List<ClassRoomQueryResultDto>> List(ClassRoomQueryDto query);

        /// <summary>
        /// 获取上课人数
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int GetClassRoomPersonNumber(GetClassRoomPersonNumberQueryDto dto);
        
        /// <summary>
        /// 获取直播课堂数
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int GetClassRoomNumber(GetClassRoomNumberQueryDto dto);
    }
}
